<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2022/9/28
  Time: 21:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>

    <meta charset="UTF-8">
    <title>Title</title>
    <!--vue.js核心库-->
    <script src="js/vue.js"></script>
    <!--引入elementUI-->
    <script src="element-ui/lib/index.js"></script>
    <script src="js/axios-0.18.0.js"></script>
    <!--css-->
    <link rel="stylesheet" href="element-ui/lib/theme-chalk/index.css">

    <style>
        .el-header {
            background-color: #B3C0D1;
            color: #333;
            line-height: 60px;
        }

        .el-aside {
            color: #333;
            overflow: hidden;
        }



    </style>


</head>
<body>
<div id="app">
    <el-header style="text-align: right; background: linear-gradient(to top right, #39dcce, #39DCCEFF, #FFEB3B); height: 60px">
        <span  id="one" style="color:yellow;font-size:45px;font-family:楷体;float: left;">某某学校后台管理系统</span>
        <el-dropdown >
            <i class="el-icon-setting" style="margin-right: 15px"></i>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>查看</el-dropdown-item>
                <el-dropdown-item>新增</el-dropdown-item>
                <el-dropdown-item>删除</el-dropdown-item>
            </el-dropdown-menu>
        </el-dropdown>
        <span>欢迎您${user.username}</span>
    </el-header>


    <el-container style="height: 600px; border: 1px solid #eee">
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
            <el-menu :default-openeds="['1', '3']">
                </el-submenu>
                <el-submenu index="1">
                    <template slot="title"><i class="el-icon-menu"></i>首页</template>
                    <el-menu-item  @click="index" index="1-1">校园简介</el-menu-item>
                </el-submenu>
                <el-submenu index="2">
                    <template slot="title"><i class="el-icon-menu"></i>用户管理</template>
                    <el-menu-item  @click="long" index="2-1">登录</el-menu-item>
                    <el-menu-item  @click="regis"  index="2-2">注册</el-menu-item>
                </el-submenu>
                <el-submenu index="3">
                    <template slot="title"><i class="el-icon-menu"></i>信息管理</template>
                    <el-menu-item @click="show" index="2-1">学生信息</el-menu-item>
                    <el-menu-item @click="and" index="2-2">教师信息</el-menu-item>
                </el-submenu>
            </el-menu>
        </el-aside>
        <el-main>
            <h1>校园简介</h1>
            <hr>
        </el-main>
    </el-container>


</div>


</body>
</html>

<script>
    new Vue({
        el: '#app',
        data() {
            return {}
        },
        methods: {
            show() {
                window.location.href = "student.jsp"
            },
            and() {
                window.location.href = "Teacher.jsp"
            },
            long() {
                window.location.href = "login.jsp"
            },
            regis() {
                window.location.href = "register.jsp"
            },
            index(){
                window.location.href = "index.jsp"
            }
        }
    })
</script>